package com.bjqh.edu.Bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/11/6.
 */

public class UpdateApp implements Parcelable {


    /**
     * data : {"uid":null,"total":null,"id":20,"time":1509972669000,"flag":2,"status":1,"page":null,"versionCode":2,"versionName":"1.0.1","rows":null}
     * msg : success
     * status : 200
     */

    private DataBean data;
    private String msg;
    private int status;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public static class DataBean implements Parcelable {
        /**
         * uid : null
         * total : null
         * id : 20
         * time : 1509972669000
         * flag : 2
         * status : 1
         * page : null
         * versionCode : 2
         * versionName : 1.0.1
         * rows : null
         */

        private String uid;
        private String total;
        private int id;
        private long time;
        private int flag;
        private int status;
        private String page;
        private int versionCode;
        private String versionName;
        private String rows;

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public int getFlag() {
            return flag;
        }

        public void setFlag(int flag) {
            this.flag = flag;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public int getVersionCode() {
            return versionCode;
        }

        public void setVersionCode(int versionCode) {
            this.versionCode = versionCode;
        }

        public String getVersionName() {
            return versionName;
        }

        public void setVersionName(String versionName) {
            this.versionName = versionName;
        }

        public String getRows() {
            return rows;
        }

        public void setRows(String rows) {
            this.rows = rows;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.uid);
            dest.writeString(this.total);
            dest.writeInt(this.id);
            dest.writeLong(this.time);
            dest.writeInt(this.flag);
            dest.writeInt(this.status);
            dest.writeString(this.page);
            dest.writeInt(this.versionCode);
            dest.writeString(this.versionName);
            dest.writeString(this.rows);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.uid = in.readString();
            this.total = in.readString();
            this.id = in.readInt();
            this.time = in.readLong();
            this.flag = in.readInt();
            this.status = in.readInt();
            this.page = in.readString();
            this.versionCode = in.readInt();
            this.versionName = in.readString();
            this.rows = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.data, flags);
        dest.writeString(this.msg);
        dest.writeInt(this.status);
    }

    public UpdateApp() {
    }

    protected UpdateApp(Parcel in) {
        this.data = in.readParcelable(DataBean.class.getClassLoader());
        this.msg = in.readString();
        this.status = in.readInt();
    }

    public static final Parcelable.Creator<UpdateApp> CREATOR = new Parcelable.Creator<UpdateApp>() {
        @Override
        public UpdateApp createFromParcel(Parcel source) {
            return new UpdateApp(source);
        }

        @Override
        public UpdateApp[] newArray(int size) {
            return new UpdateApp[size];
        }
    };
}
